package com.example.mybatis1.controller;

import com.example.mybatis1.mapper.UserInfoMapper;
import com.example.mybatis1.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * ClassName: UserInfoController
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2023/11/13 15:54
 * @Version 1.0
 */
@RestController
public class UserInfoController {
    @Autowired
    private UserInfoMapper userInfoMapper;
    @RequestMapping("/selectAll")
    public List<UserInfo> selctAll() {
        return userInfoMapper.selectAll();
    }
}
